home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 2250 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  1.8 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 68 69 | 63 6b 6f 72 79 2e 77 65 |Path: hi|ckory.we|
|00000010| 73 74 6f 6c 2e 63 6f 6d | 21 6e 65 77 73 0a 46 72 |stol.com|!news.Fr|
|00000020| 6f 6d 3a 20 4d 61 72 6b | 20 4b 69 6e 74 69 67 68 |om: Mark| Kintigh|
|00000030| 20 3c 62 72 65 65 74 61 | 69 40 6f 61 6b 2e 77 65 | <breeta|i@oak.we|
|00000040| 73 74 6f 6c 2e 63 6f 6d | 3e 0a 4e 65 77 73 67 72 |stol.com|>.Newsgr|
|00000050| 6f 75 70 73 3a 20 63 6f | 6d 70 2e 6c 61 6e 67 2e |oups: co|mp.lang.|
|00000060| 63 0a 53 75 62 6a 65 63 | 74 3a 20 4d 6f 75 73 65 |c.Subjec|t: Mouse|
|00000070| 20 52 6f 75 74 69 6e 65 | 73 20 75 73 69 6e 67 20 | Routine|s using |
|00000080| 43 2f 43 2b 2b 0a 44 61 | 74 65 3a 20 46 72 69 2c |C/C++.Da|te: Fri,|
|00000090| 20 31 39 20 4a 61 6e 20 | 31 39 39 36 20 31 36 3a | 19 Jan |1996 16:|
|000000a0| 30 37 3a 34 31 20 2d 30 | 38 30 30 0a 4f 72 67 61 |07:41 -0|800.Orga|
|000000b0| 6e 69 7a 61 74 69 6f 6e | 3a 20 57 65 73 74 6d 6f |nization|: Westmo|
|000000c0| 72 65 6c 61 6e 64 20 4f | 6e 6c 69 6e 65 20 49 6e |reland O|nline In|
|000000d0| 63 2e 0a 4d 65 73 73 61 | 67 65 2d 49 44 3a 20 3c |c..Messa|ge-ID: <|
|000000e0| 33 31 30 30 33 32 34 44 | 2e 31 38 41 30 40 6f 61 |3100324D|.18A0@oa|
|000000f0| 6b 2e 77 65 73 74 6f 6c | 2e 63 6f 6d 3e 0a 4e 4e |k.westol|.com>.NN|
|00000100| 54 50 2d 50 6f 73 74 69 | 6e 67 2d 48 6f 73 74 3a |TP-Posti|ng-Host:|
|00000110| 20 70 6d 31 31 38 2e 77 | 65 73 74 6f 6c 2e 63 6f | pm118.w|estol.co|
|00000120| 6d 0a 4d 69 6d 65 2d 56 | 65 72 73 69 6f 6e 3a 20 |m.Mime-V|ersion: |
|00000130| 31 2e 30 0a 43 6f 6e 74 | 65 6e 74 2d 54 79 70 65 |1.0.Cont|ent-Type|
|00000140| 3a 20 74 65 78 74 2f 70 | 6c 61 69 6e 3b 20 63 68 |: text/p|lain; ch|
|00000150| 61 72 73 65 74 3d 75 73 | 2d 61 73 63 69 69 0a 43 |arset=us|-ascii.C|
|00000160| 6f 6e 74 65 6e 74 2d 54 | 72 61 6e 73 66 65 72 2d |ontent-T|ransfer-|
|00000170| 45 6e 63 6f 64 69 6e 67 | 3a 20 37 62 69 74 0a 58 |Encoding|: 7bit.X|
|00000180| 2d 4d 61 69 6c 65 72 3a | 20 4d 6f 7a 69 6c 6c 61 |-Mailer:| Mozilla|
|00000190| 20 32 2e 30 62 34 61 20 | 28 57 69 6e 31 36 3b 20 | 2.0b4a |(Win16; |
|000001a0| 49 29 0a 54 6f 3a 20 6a | 6f 6e 64 61 79 40 77 70 |I).To: j|onday@wp|
|000001b0| 69 2e 65 64 75 0a 0a 4a | 6f 6e 20 44 61 79 20 77 |i.edu..J|on Day w|
|000001c0| 72 6f 74 65 3a 0a 3e 20 | 0a 3e 20 49 20 68 61 76 |rote:.> |.> I hav|
|000001d0| 65 20 73 6f 6d 65 20 73 | 69 6d 70 6c 65 20 72 6f |e some s|imple ro|
|000001e0| 75 74 69 6e 65 73 20 74 | 6f 20 69 6d 70 6c 65 6d |utines t|o implem|
|000001f0| 65 6e 74 20 61 20 6d 6f | 75 73 65 20 68 61 6e 64 |ent a mo|use hand|
|00000200| 6c 65 72 20 69 73 20 61 | 73 73 65 6d 62 6c 65 72 |ler is a|ssembler|
|00000210| 20 62 75 74 0a 3e 20 6e | 6f 74 68 69 6e 20 69 6e | but.> n|othin in|
|00000220| 20 43 20 6f 72 20 43 2b | 2b 2e 20 43 61 6e 20 61 | C or C+|+. Can a|
|00000230| 6e 79 6f 6e 65 20 70 72 | 6f 76 69 64 65 20 6d 65 |nyone pr|ovide me|
|00000240| 20 77 69 74 68 20 65 78 | 61 6d 70 6c 65 20 63 6f | with ex|ample co|
|00000250| 64 65 20 6f 6e 20 68 6f | 77 20 74 6f 20 73 65 74 |de on ho|w to set|
|00000260| 0a 3e 20 75 70 20 61 6e | 20 69 6e 74 65 72 72 75 |.> up an| interru|
|00000270| 70 74 20 68 61 6e 64 6c | 65 72 20 66 6f 72 20 74 |pt handl|er for t|
|00000280| 68 65 20 6d 6f 75 73 65 | 20 75 73 69 6e 67 20 6f |he mouse| using o|
|00000290| 6e 6c 79 20 43 3f 0a 3e | 20 0a 3e 20 49 20 61 6d |nly C?.>| .> I am|
|000002a0| 20 77 6f 72 6b 69 6e 67 | 20 6f 6e 20 61 20 70 72 | working| on a pr|
|000002b0| 6f 6a 65 63 74 20 74 68 | 61 74 20 72 65 71 75 69 |oject th|at requi|
|000002c0| 72 65 73 20 74 68 65 20 | 75 73 65 20 6f 66 20 74 |res the |use of t|
|000002d0| 68 65 20 6d 6f 75 73 65 | 20 62 75 74 20 49 20 77 |he mouse| but I w|
|000002e0| 61 6e 74 20 74 6f 0a 3e | 20 77 72 69 74 65 20 74 |ant to.>| write t|
|000002f0| 68 65 20 63 6f 64 65 20 | 6f 6e 6c 79 20 69 6e 20 |he code |only in |
|00000300| 43 20 61 6e 64 20 6e 6f | 74 20 69 6e 20 61 73 73 |C and no|t in ass|
|00000310| 65 6d 62 6c 65 72 2e 0a | 3e 20 0a 3e 20 41 6e 79 |embler..|> .> Any|
|00000320| 20 68 65 6c 70 20 69 73 | 20 67 72 65 61 74 6c 79 | help is| greatly|
|00000330| 20 61 70 70 72 65 63 69 | 61 74 65 64 20 61 6e 64 | appreci|ated and|
|00000340| 20 79 6f 75 20 63 61 6e | 20 72 65 70 6c 79 20 64 | you can| reply d|
|00000350| 69 72 65 63 74 6c 79 20 | 74 6f 20 6d 65 2e 0a 0a |irectly |to me...|
|00000360| 0a 49 27 76 65 20 77 72 | 69 74 74 65 6e 20 74 68 |.I've wr|itten th|
|00000370| 65 6d 20 6f 72 69 67 69 | 6f 6e 61 6c 6c 79 20 75 |em origi|onally u|
|00000380| 73 69 6e 67 20 69 6e 74 | 38 36 28 29 2c 20 62 75 |sing int|86(), bu|
|00000390| 74 20 49 20 66 69 6e 64 | 20 74 68 61 74 20 69 6e |t I find| that in|
|000003a0| 2d 6c 69 6e 65 0a 61 73 | 73 65 6d 62 6c 65 72 20 |-line.as|sembler |
|000003b0| 63 6f 64 65 20 77 6f 72 | 6b 73 20 31 30 30 30 20 |code wor|ks 1000 |
|000003c0| 74 69 6d 65 73 20 62 65 | 74 74 65 72 2e 20 20 43 |times be|tter. C|
|000003d0| 6f 64 65 20 6c 69 6b 65 | 2e 2e 2e 0a 0a 09 69 6e |ode like|......in|
|000003e0| 74 20 67 65 74 6d 6f 75 | 73 65 73 74 61 74 73 28 |t getmou|sestats(|
|000003f0| 69 6e 74 20 2a 72 6f 77 | 2c 20 69 6e 74 20 2a 63 |int *row|, int *c|
|00000400| 6f 6c 29 0a 09 7b 0a 09 | 20 20 20 69 6e 74 20 72 |ol)..{..| int r|
|00000410| 2c 20 63 2c 20 62 3b 0a | 0a 09 20 20 20 5f 61 73 |, c, b;.|.. _as|
|00000420| 6d 0a 09 20 20 20 7b 0a | 09 20 20 20 20 20 20 6d |m.. {.|. m|
|00000430| 6f 76 20 61 78 2c 30 30 | 30 33 68 0a 09 20 20 20 |ov ax,00|03h.. |
|00000440| 20 20 20 69 6e 74 20 33 | 33 68 0a 09 20 20 20 20 | int 3|3h.. |
|00000450| 20 20 6d 6f 76 20 72 2c | 64 78 0a 09 20 20 20 20 | mov r,|dx.. |
|00000460| 20 20 6d 6f 76 20 63 2c | 63 78 0a 09 20 20 20 20 | mov c,|cx.. |
|00000470| 20 20 6d 6f 76 20 62 2c | 62 78 0a 09 20 20 20 7d | mov b,|bx.. }|
|00000480| 0a 09 20 20 20 2a 72 6f | 77 3d 72 3b 0a 09 20 20 |.. *ro|w=r;.. |
|00000490| 20 2a 63 6f 6c 3d 63 3b | 0a 09 20 20 20 72 65 74 | *col=c;|.. ret|
|000004a0| 75 72 6e 28 62 29 3b 0a | 09 7d 0a 0a 2e 2e 2e 69 |urn(b);.|.}.....i|
|000004b0| 73 20 73 68 6f 72 74 2c | 20 73 77 65 65 74 2c 20 |s short,| sweet, |
|000004c0| 61 6e 64 20 77 6f 72 6b | 73 20 6e 69 63 65 6c 79 |and work|s nicely|
|000004d0| 2e 20 20 49 66 20 79 6f | 75 20 2a 72 65 61 6c 6c |. If yo|u *reall|
|000004e0| 79 2a 20 77 61 6e 74 20 | 74 68 65 20 31 30 30 25 |y* want |the 100%|
|000004f0| 20 43 0a 76 65 72 73 69 | 6f 6e 20 6f 66 20 74 68 | C.versi|on of th|
|00000500| 65 20 6d 6f 75 73 65 20 | 72 6f 75 74 69 6e 65 73 |e mouse |routines|
|00000510| 20 49 20 68 61 76 65 20 | 49 27 6c 6c 20 74 72 79 | I have |I'll try|
|00000520| 20 74 6f 20 64 69 67 20 | 74 68 65 6d 20 75 70 2c | to dig |them up,|
|00000530| 20 62 75 74 20 49 20 0a | 74 68 69 6e 6b 20 49 27 | but I .|think I'|
|00000540| 76 65 20 74 72 61 73 68 | 65 64 20 74 68 65 6d 20 |ve trash|ed them |
|00000550| 69 6e 20 66 61 76 6f 72 | 20 6f 66 20 74 68 65 20 |in favor| of the |
|00000560| 62 65 74 74 65 72 20 66 | 75 6e 63 74 69 6f 6e 73 |better f|unctions|
|00000570| 2e 0a 2d 2d 20 0a 20 20 | 20 20 20 5f 5f 5f 5f 5f |..-- . | _____|
|00000580| 0a 20 20 20 20 2f 20 20 | 20 20 2f 23 23 20 20 20 |. / | /## |
|00000590| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 62 72 | | br|
|000005a0| 65 65 74 61 69 40 6f 61 | 6b 2e 77 65 73 74 6f 6c |eetai@oa|k.westol|
|000005b0| 2e 63 6f 6d 0a 20 20 20 | 2f 20 20 20 20 2f 23 23 |.com. |/ /##|
|000005c0| 23 23 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |## | |
|000005d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000005e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000005f0| 20 20 20 20 20 20 20 5f | 5f 5f 5f 0a 20 20 28 7c | _|___. (||
|00000600| 20 5b 5d 2f 20 6f 20 23 | 23 29 20 20 20 20 22 57 | []/ o #|#) "W|
|00000610| 65 20 6d 65 74 20 74 68 | 65 20 65 6e 65 6d 79 2c |e met th|e enemy,|
|00000620| 20 61 6e 64 20 74 68 65 | 79 20 77 65 72 65 27 6e | and the|y were'n|
|00000630| 74 20 75 73 2c 20 74 68 | 65 6e 20 20 20 7c 20 5f |t us, th|en | _|
|00000640| 7c 7c 7c 0a 7c 5c 20 5c | 5f 2f 20 2f 5c 20 20 20 ||||.|\ \|_/ /\ |
|00000650| 23 20 2f 7c 20 20 77 65 | 20 66 61 63 65 64 20 61 |# /| we| faced a|
|00000660| 20 70 61 6e 6e 65 6c 20 | 6f 66 20 27 75 73 27 20 | pannel |of 'us' |
|00000670| 61 6e 64 20 66 6f 75 6e | 64 20 74 68 65 79 20 77 |and foun|d they w|
|00000680| 65 72 65 20 20 7c 7c 20 | 20 7c 7c 0a 7c 20 5c 2d |ere || | ||.| \-|
|00000690| 5c 20 3d 3d 3d 3d 20 2f | 2d 2f 20 7c 20 20 20 20 |\ ==== /|-/ | |
|000006a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000006b0| 74 68 65 20 65 6e 65 6d | 79 2e 22 20 20 20 20 20 |the enem|y." |
|000006c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 5c 5c | | \\|
|000006d0| 2f 2f 0a 7c 7c 5c 5c 20 | 27 2d 2d 2d 2d 27 20 2f |//.||\\ |'----' /|
|000006e0| 2f 7c 7c 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |/|| | |
|000006f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000700| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000710| 20 20 20 20 20 20 5c 2f | 0a 7c 7c 20 5c 5c 2f 20 | \/|.|| \\/ |
|00000720| 20 20 20 5c 2f 2f 20 7c | 7c 0a | \// |||. |
+--------+-------------------------+-------------------------+--------+--------+